package com.infore.dataAudit.entity;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;


/**
 * The persistent class for the T_DATA_AUDIT_RECORD database table.
 * 
 */
@Entity
@Table(name="T_DATA_AUDIT_RECORD")
@NamedQuery(name="TDataAuditRecord.findAll", query="SELECT t FROM TDataAuditRecord t")
public class TDataAuditRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ID")
    @GeneratedValue(generator = "uuidGenerator")
    @GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String id;

	@Column(name="AUDIT_DATE")
	private Date auditDate; //审核时间

	@Column(name="AUDIT_OPERATION")
	private String auditOperation; //审核操作

	@Column(name="AUDIT_REASON")
	private String auditReason; //审核原因

	@Column(name="AUDIT_USER")
	private String auditUser; //审核人

	@Column(name="FLOW_INSTANCE_ID")
	private String flowInstanceId;

	@Temporal(TemporalType.DATE)
	@Column(name="STATION_DATE")
	private Date stationDate; //监测时间

	@Column(name="STATION_NAME")
	private String stationName; //点位名称
	
	@Column(name="STATION_MN")
    private String stationMn;
	
	@Transient
	private String stationCompany; //运营单位
	@Transient
    private String stationProvin; //省级
	@Transient
    private String stationCity;//市级

	public TDataAuditRecord() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	public Date getAuditDate() {
		return this.auditDate;
	}

	public void setAuditDate(Date auditDate) {
		this.auditDate = auditDate;
	}

	public String getAuditOperation() {
		return this.auditOperation;
	}

	public void setAuditOperation(String auditOperation) {
		this.auditOperation = auditOperation;
	}

	public String getAuditReason() {
		return this.auditReason;
	}

	public void setAuditReason(String auditReason) {
		this.auditReason = auditReason;
	}

	public String getAuditUser() {
		return this.auditUser;
	}

	public void setAuditUser(String auditUser) {
		this.auditUser = auditUser;
	}

	public String getFlowInstanceId() {
		return this.flowInstanceId;
	}

	public void setFlowInstanceId(String flowInstanceId) {
		this.flowInstanceId = flowInstanceId;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	public Date getStationDate() {
		return this.stationDate;
	}

	public void setStationDate(Date stationDate) {
		this.stationDate = stationDate;
	}

	public String getStationMn() {
		return this.stationMn;
	}

	public void setStationMn(String stationMn) {
		this.stationMn = stationMn;
	}

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getStationCompany() {
        return stationCompany;
    }

    public void setStationCompany(String stationCompany) {
        this.stationCompany = stationCompany;
    }

    public String getStationProvin() {
        return stationProvin;
    }

    public void setStationProvin(String stationProvin) {
        this.stationProvin = stationProvin;
    }

    public String getStationCity() {
        return stationCity;
    }

    public void setStationCity(String stationCity) {
        this.stationCity = stationCity;
    }

}